<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="classes/conndb.jsp"%>

<%
	PreparedStatement ps = null;
	Connection con = null;
	ResultSet rs = null;
	
	String message_id = request.getParameter("message_id") == null ? "" : request.getParameter("message_id");
	String checkstatus = request.getParameter("checkstatus") == null ? "" : request.getParameter("checkstatus");
	
	int count = 0;
	String sql = "";
		sql = "update cms_public_comment set status='3' where message_id =?";
		try {
			con = getConnection();
			ps = con.prepareStatement(sql);
			ps.setObject(1, message_id);
			count = ps.executeUpdate();

		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			closeConn(con, ps, rs);
		}

	if (count > 0) {
		out.print("{\"operate_status\":\"1\"}");
	} else {
		out.print("{\"operate_status\":\"0\"}");
	}
%>